import os
from os import path

from flask_bootstrap import Bootstrap
from gevent import pywsgi

from apps.app import app

NLS_LANG = 'AMERICAN_AMERICA.AL32UTF8'
os.environ['NLS_LANG'] = NLS_LANG
os.environ['ASSETS_PATH'] = path.abspath("./assets")

Bootstrap(app)

if __name__ == '__main__':
    # app.run(host='0.0.0.0')
    server = pywsgi.WSGIServer(('0.0.0.0', 5000), app)
    server.serve_forever()
